<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>《{$book.bookname}》新增题目</h2>
    </div>
    <form action="{:U()}" method="post" enctype="multipart/form-data" class="form-horizontal">
    <input type="hidden" class="form-control" name="bookid" value="{$book.id}">
  <div class="form-item">
    <label>题目标题</label>
    <input type="text" class="form-control" name="title" value="">
  </div>
  <div class="form-item">
    <label>选项A</label>
    <input type="text" class="form-control" name="option_a" value="">
  </div>
  <div class="form-item">
    <label>选项B</label>
    <input type="text" class="form-control" name="option_b" value="">
  </div>
  <div class="form-item">
    <label>选项C</label>
    <input type="text" class="form-control" name="option_c" value="">
  </div>
  <div class="form-item">
    <label>选项D</label>
    <input type="text" class="form-control" name="option_d" value="">
  </div>
  <div class="form-item">
    <label>正确答案</label>
    <select class="form-control" name="answer" >
		<option value = "A">A</option>
		<option value = "B">B</option>
		<option value = "C">C</option>
		<option value = "D">D</option>
	</select>
  </div>
  <div class="form-item">
  		<!-- <input class="btn submit-btn" type="submit" value="确 定"/> -->
      <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
      <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
  </div>
</form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Book/index')}');
</script>
</block>
